package com.woniu.common.api.exception;

import com.woniu.common.api.api.IErrorCode;

/**
 * 自定义异常响应
 */
public class Asserts {

    public static void failure(IErrorCode errorCode) {
        throw new BusinessException(errorCode);
    }

    public static void failure(String message) {
        throw new BusinessException(message);
    }
}
